package com.code.generate.enums;

/**
 * 页面输入控件枚举
 *
 * @author Administrator
 */
public enum ControlType {
    TEXT("text", "文本"),
    TEXTAREA("textarea", "文本域"),
    SELECT("SELECT", "动态下拉框"),
    SELECT_CHECKBOX("SELECT_CHECKBOX", "动态下拉多选框"),
    SELECT_TREE("SELECT_TREE", "树形下拉框"),
    SELECT_TREE_CHECKBOX("SELECT_TREE_CHECKBOX", "树形多选下拉框"),
    SELECT_TREE_RADIO("SELECT_TREE_RADIO", "树形单选下拉框"),
    CHECKBOX("CHECKBOX", "复选框"),
    RADIO("RADIO", "单选框"),
    STATIC_SELECT("select", "静态下拉框"),
    STATIC_CHECKBOX("checkbox", "静态复选框"),
    STATIC_RADIO( "radio", "静态单选框"),
    DATE("date", "日期"),
    DATE_TIME("dateTime", "日期时间"),
    TIME("time", "时间"),
    TIMESTAMP("timestamp", "时间戳"),
    FILE_UPLOAD("other", "文件上传控件"),
    IMAGE_UPLOAD("other", "图片上传控件"),
    WEB_EDITOR("other", "在线编辑器");
    private final String value;
    private final String text;

    ControlType(String value, String text) {
        this.value = value;
        this.text = text;
    }

    @Override
    public String toString() {
        return this.text;
    }

    public String getValue() {
        return value;
    }
}
